import { createStore } from 'redux'

function log(state = {}, action: { type: string, cookie: string }) {
  switch (action.type) {
    case 'SET':
      return action.cookie
    default:
      return state
  }
}

let cookieStore = createStore(log)

export default cookieStore